package io.github.wanggit.antrpc.console.dao;

import io.github.wanggit.antrpc.console.domain.ConsumerRateLimiting;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConsumerRateLimitingRepository extends JpaRepository<ConsumerRateLimiting, Long> {

    ConsumerRateLimiting findByMethodMd5(String methodMd5);

    List<ConsumerRateLimiting> findAllByClassMd5(String classMd5);
}
